#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <assert.h>
void* my_memcpy(void* arr, const void* arr2, size_t sz)
{
	void* ret = arr;
	while (sz)
	{
		*(char*)arr = *(char*)arr2;
		arr = (char*)arr + 1;
		arr2 = (char*)arr2 + 1;
		sz -= 1;
	}
	return ret;
}
int main()
{
	int arr[20] = { 0 };
	int arr2[] = { 1,2,3,4,5,6,7,8,9,10 };
	my_memcpy(arr, arr2, 40);
	for (int sz = 0; sz < 20; sz++)
	{
		printf("%d ", arr[sz]);
	}
	return 0;
}